#!/bin/sh

version=$(rpm -q --specfile --qf='%{version}\n' yarnpkg.spec | head -n1)
wget https://github.com/yarnpkg/yarn/archive/v$version.tar.gz
tar -zxf v$version.tar.gz
cd yarn-$version
npm install --force && cd .. && tar -zcf yarnpkg-v$version-bundled.tar.gz yarn-$version
